import request from '@/utils/request'

// 添加
export function addComment(data) {
  return request({
    url: `/postscript/postscript`,
    method: 'post',
    data
  })
}

// 附言
export function getComment(query) {
  return request({
    url: `/postscript/postscript/list`,
    method: 'get',
    params: query
  })
}

// 查询单条资质信息
export function getInfo(id) {
  return request({
    url: `/task/task/${id}`,
    method: 'get'
  })
}
export function listInfo(query) {
  return request({
    url: '/task/task/list',
    method: 'get',
    params: query
  })
}
// 添加
export function addInfo(data) {
  return request({
    url: '/task/task',
    method: 'post',
    data
  })
}
// 修改
export function updateInfo(data) {
  return request({
    url: '/task/task',
    method: 'put',
    data
  })
}
// 删除
export function delInfo(id) {
  return request({
    url: `/task/task/${id}`,
    method: 'delete'
  })
}